import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/msg_log_entity.g.dart';
import 'dart:convert';
export 'package:wanxiang_app/generated/json/msg_log_entity.g.dart';

@JsonSerializable()
class MsgLogEntity {
	late int code;
	late String msg;
	late int count;
	late List<MsgLogData> data;

	MsgLogEntity();

	factory MsgLogEntity.fromJson(Map<String, dynamic> json) => $MsgLogEntityFromJson(json);

	Map<String, dynamic> toJson() => $MsgLogEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class MsgLogData {
	late int id;
	@JSONField(name: "user_id")
	late int userId;
	late String time;
	late int status;
	@JSONField(name: "is_read")
	late int isRead;
	late String remark;

	MsgLogData();

	factory MsgLogData.fromJson(Map<String, dynamic> json) => $MsgLogDataFromJson(json);

	Map<String, dynamic> toJson() => $MsgLogDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}